package structure.decorator;

import structure.decorator.impl.Circle;
import structure.decorator.impl.Rectangle;
import structure.decorator.impl.RedShapeDecorator;

public class DecoratorTest {
	public static void main(String[] args) throws InterruptedException {
		Shape circle = new Circle();
		circle.draw();
		System.out.println("Circle with normal border");
		
		Shape redCircle = new RedShapeDecorator(new Circle());
		Shape redRectangle = new RedShapeDecorator(new Rectangle());

		System.out.println("\nCircle of red border");
		redCircle.draw();

		System.out.println("\nRectangle of red border");
		redRectangle.draw();
	}
}
